package com.mayisoftware.mayioa.business.personal.api.domain;

import org.apache.commons.lang3.StringUtils;

import java.math.BigDecimal;
import java.util.List;

/**
 * 个人信息计划概览
 */
public class PersonalDetail {
    /**
     * 计划名称
     */
    private String planName;

    /**
     * 计划类型
     */
    private String planType;

    /**
     * 计划描述
     */
    private String planDesc;

    /**
     * 通过分数
     */
    private String passScore;


    /**
     * 总得分
     */
    private String totalScore;

    /**
     * 计划排名
     */
    private String planRank;

    /**
     * 是否倒数N名标红
     */
    private String isLastN;
    /**
     * 计划项目信息
     */
    private List<String> itemName;

    /**
     * 分数详细信息
     */
    private List<BigDecimal> itemScore;


    /**
     * 分数原因描述
     */
    private List<String> itemDesc;

    public String getPlanName() {
        return planName;
    }

    public void setPlanName(String planName) {
        this.planName = planName;
    }

    public String getPlanType() {
        return planType;
    }

    public void setPlanType(String planType) {
        this.planType = planType;
    }

    public String getPlanDesc() {
        return planDesc;
    }

    public void setPlanDesc(String planDesc) {
        this.planDesc = planDesc;
    }

    public String getPassScore() {
        return passScore;
    }

    public void setPassScore(String passScore) {
        this.passScore = passScore;
    }

    public String getTotalScore() {
        return totalScore;
    }

    public void setTotalScore(String totalScore) {
        this.totalScore = totalScore;
    }

    public void setTotalScore(BigDecimal totalScore){
        this.totalScore = StringUtils.EMPTY;
        if(totalScore != null){
            this.totalScore = totalScore.toString();
        }
    }

    public List<String> getItemDesc() {
        return itemDesc;
    }

    public void setItemDesc(List<String> itemDesc) {
        this.itemDesc = itemDesc;
    }

    public List<String> getItemName() {
        return itemName;
    }

    public void setItemName(List<String> itemName) {
        this.itemName = itemName;
    }

    public List<BigDecimal> getItemScore() {
        return itemScore;
    }

    public void setItemScore(List<BigDecimal> itemScore) {
        this.itemScore = itemScore;
    }

    public String getPlanRank() {
        return planRank;
    }

    public void setPlanRank(String planRank) {
        this.planRank = planRank;
    }

    public void setPlanRank(Integer planRank) {
        this.planRank = StringUtils.EMPTY;
        if(planRank != null){
            this.planRank = planRank.toString();
        }
    }

    public String getIsLastN() {
        return isLastN;
    }

    public void setIsLastN(String isLastN) {
        this.isLastN = isLastN;
    }

    public void setIsLastN(Integer isLastN) {
        this.isLastN = StringUtils.EMPTY;
        if(isLastN != null){
            this.isLastN = isLastN.toString();
        }
    }
}
